package cn.dapeng.test;

public class VirtualThread_T01 {

    public static void main(String[] args) throws InterruptedException {
        Thread.ofPlatform().start(() -> {
            System.out.println("1. " +Thread.currentThread());
        });

        Thread vt = Thread.ofVirtual().start(() -> {
            System.out.println("2. " + Thread.currentThread());
        });

        vt.join();
    }
}
